﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Sys.WebRes.Data;

namespace Sys.WebRes.Publish.Areas.Admin.Controllers
{
    public class ArticleController : Controller
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="id">栏目IDsectionID</param>
        /// <returns></returns>
        public ActionResult Index(int? id)
        {
            using (var db = new ResourceSysEntities())
            {
                var list5 = db.ResourceTBL
                                .Where(p=>p.ResType.ID == ResType.Article.ID 
                                    && p.SecResLinks.Any(s=>s.Section.ID == id))
                                .ToList();
            }
            return View();
        }
    }
}
